package com.example.makerspace.service;

import com.example.makerspace.dto.CustomizeBulletinDTO;
import com.example.makerspace.dto.PageRequest;
import com.example.makerspace.dto.Result;
import org.elasticsearch.http.HttpPipelinedMessage;

import javax.servlet.http.HttpServletRequest;

public interface BulletinService {
    Result getBulletin(HttpServletRequest request);

    Result addBulletin(CustomizeBulletinDTO customizeBulletinDTO);

    Result updateBulletin(CustomizeBulletinDTO customizeBulletinDTO);

    Result deleteBulletin(Integer id);

    Result listBulletin(PageRequest pageRequest);

    Result getLeftBulletin(PageRequest pageRequest, HttpServletRequest request);
}
